package com.ctcemti.mdm.project.sys.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;

/**
 * 组织信息表
 */

@Data
@ApiModel(value = "组织信息表")
public class OrgOrganization {


    /**
     * 主键id
     */
    @Id
    @ApiModelProperty(value = "主键id",required = true)
    private String id;
    /**
     * 组织名称
     */
    @ApiModelProperty(value = "组织名称")
    @Excel(name = "组织名称")
    private String name;
    /**
     * 组织简称
     */
    @ApiModelProperty(value = "组织简称")
    @Excel(name = "组织简称")
    private String shortName;
    /**
     * 组织码
     */
    @ApiModelProperty(value = "组织码")
    @Excel(name = "组织码")
    private String orgCode;
    /**
     * 父级码
     */
    @ApiModelProperty(value = "父级码")
    @Excel(name = "父级码")
    private String parentCode;
    /**
     * 上级组织ID
     */
    @ApiModelProperty(value = "上级组织ID")
    @Excel(name = "上级组织ID")
    private String parentId;
    /**
     * 域名
     */
    @ApiModelProperty(value = "域名")
    @Excel(name = "域名")
    private String domainName;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @Excel(name = "排序")
    private Integer sort;
    /**
     * 组织类型
     */
    @ApiModelProperty(value = "组织类型")
    @Excel(name = "排序")
    private Integer type;
    /**
     * 组织级别
     */
    @ApiModelProperty(value = "组织级别")
    @Excel(name = "组织级别")
    private Integer hierarchy;
    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    @Excel(name = "电话")
    private String phone;
    /**
     * 传真
     */
    @ApiModelProperty(value = "传真")
    @Excel(name = "传真")
    private String fax;
    /**
     * 邮编
     */
    @ApiModelProperty(value = "邮编")
    @Excel(name = "邮编")
    private String postalCode;
    /**
     * 网址
     */
    @ApiModelProperty(value = "网址")
    @Excel(name = "网址")
    private String webSite;
    /**
     * 地址
     */
    @ApiModelProperty(value = "地址")
    @Excel(name = "地址")
    private String address;
    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @Excel(name = "状态")
    private String state;
    /**
     * gps坐标
     */
    @ApiModelProperty(value = "gps坐标")
    @Excel(name = "gps坐标")
    private String gps;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Excel(name = "备注")
    private String comment;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String creator;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createDate;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String modifiedBy;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private Date modifyDate;

    @Transient
    private boolean parent = true;

    @Transient
    private boolean open = false;

    @Transient
    private String pid;
}